//  a single header file is required
#include "message_loop/message_loop.h"

extern void      sonar_test_tool_init( );
static pthread_t ptid;
static void      start_sonar_test_tool( ) {
  pthread_attr_t attr;

  pthread_create( &ptid, NULL, sonar_test_tool_init, 0 );
}

int main( void ) {
  //  use the default event loop unless you have special needs
  struct ev_loop* loop = EV_DEFAULT;

  //  sonar test
  //   sonar_init( );
  start_sonar_test_tool( );
  aCTD422Init( );

  //  now wait for events to arrive
  ev_run( loop, 0 );

  //  break was called, so exit
  pthread_join( ptid );
  return 0;
}
